amd/iommu: fix present bit checking when clearing PTE
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 25 Jan 2019 08:48:38 +0000 (09:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Jan 2019 08:48:38 +0000 (09:48 +0100)
commitba9b5a09da01960848ae9d30a34fb9073efb4f13
treeda10828ed30cb019985e5bfcba8c55f4cb530609
parent9e92acf1b752dfdfb294234b32d1fa9f55bfdc0f
amd/iommu: fix present bit checking when clearing PTE

The current check for the present bit is wrong, since the present bit
is located in the low part of the entry.

Fixes: e8afe1124cc1 ("iommu: elide flushing for higher order map/unmap operations")
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Brian Woods <brian.woods@amd.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/drivers/passthrough/amd/iommu_map.c